home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / os20 / cdity / huntwin6.lha / huntwindows.doc < prev    next >
Text File  |  1993-04-04  |  9KB  |  257 lines

  1.  
  2.              Huntwindows V2.6 by Jörg Bublath
  3.              ================================
  4.  
  5. COPYRIGHT:
  6.  
  7. Huntwindows is freely distributable.
  8. Huntwindows is free to be spread on public-domain and shareware disks
  9. especially on Fred Fish's AmigaLibDisks, as long as they are sold for a
  10. reasonable charge that is less than US $6 or DM 8.- .
  11. For use in commercial products the permission of the author is required.
  12. Huntwindows may be copied and distributed via electronic networks such
  13. as the Internet, also it may be moved on anonymous ftp-servers,
  14. mail-boxes or BBS's.
  15. The Copyright is still by the Author.
  16. You may use the source for your own non-commercial purposes, but you are
  17. not allowed to spread a changed version under the same name. If you think
  18. you have made a useful change contact me, so I may include it.
  19.  
  20.  
  21. REQUIREMENTS:
  22.  
  23. Kickstart 2.0 (V36) or higher
  24.  
  25.  
  26. PREFACE:
  27.  
  28. Coming with 2.0 you can make screens bigger than the visual size of your
  29. monitor. After I tried to catch windows like requesters etc. on my
  30. double-sized workbench, I got enough and wrote this little tool.
  31. It hangs itself into the VBI to find out which window in being
  32. activated and moves the screen to show the window in full view.
  33. Additionally there are some other related features like remembering
  34. and activating one window for each screen or bring the window or screen
  35. being activated to front.
  36. For full user-comfort, coming with version 2.0, Huntwindows is now a
  37. commodity and can placed into your WBStartup Drawer and has a Graphical
  38. User Interface.
  39.  
  40. USAGE:
  41.  
  42. Template:
  43.  MOVE/S,SFRONT/S,WFRONT/S,DEFPUB/S,ALWAYS/S,REMWIN/S,MOVEMOUSE/S,CX_POPUP/S
  44.  CX_PRIORITY/K,CX_POPKEY/K,HADJ/K,VADJ/K,SCREEN/K,WINDOW/K
  45.  
  46. or the same options as worbench tooltypes (if no default values are mentioned,
  47. then giving the tooltype turn on, leaving it away turns it off)
  48.  
  49. MOVE:
  50.   Enable ScreenMove() whenever a window is actived - this option should always
  51.   be given, because it's the main purpose of the program :)
  52.  
  53. SFRONT:
  54.   Enable the ScreenToFront() whenever a window is activated
  55.  
  56. WFRONT:
  57.   Do an additional WindowToFront() for windows being activated.
  58.   Due to problems this option won't affect Workbench Drawers.
  59.  
  60. DEFPUB:
  61.   If the Intuition FirstScreen is a PublicScreen it will automaticly set as
  62.   DefaultPubScreen, so all windows opening on the default will use the
  63.   FirstScreen.
  64.  
  65. ALWAYS:
  66.   Turns off the optimization done when a window is already totally visible.
  67.   This will only have any affect if a HADJ or VADJ option is set.
  68.  
  69. REMWIN:
  70.   Remember the ActiveWindow for every screen. When switching through the
  71.   screens Huntwindows will activate the last window that was active when it
  72.   was the FirstScreen. A maximum of 64 different screens will be remembered
  73.   - that should be enough, right?
  74.   This option was based on TWA by Matthias Scheler.
  75.  
  76. MOVEMOUSE:
  77.   When you try to click on a close-gadget (or any other) of a window that is
  78.   not completely visible, Huntwindows will move the window to show it
  79.   completely before you have time to release the button and activate it. When
  80.   this option is set Huntwindows will move the mouse with the screen, so it
  81.   still is at the same position as before, and the window will really close
  82.   (or whatever).
  83.   This movement will only take place if the mouse was on a position that was
  84.   already visible before scrolling - otherwise no mouse move will occur.
  85.  
  86. CX_POPUP:
  87.   Show the Graphical User Interface on startup.
  88.   The Interface will be automaticly shown, if Huntwindows is already running.
  89.  
  90. CX_PRIORITY=<signed integer> (Default 0)
  91.   Set the commodity priority. This is the only function which can't be changed
  92.   from the GUI. It will naturally be saved anyway. To edit it you have to
  93.   use the workbench to directly change the tooltype.
  94.  
  95. CX_POPKEY=<standard key description> (Default: control alt h)
  96.   Sets the Popup-hotkey for the GUI. By pressing this key-combination, the
  97.   GUI will pop open.
  98.  
  99. HADJ=<a>: (only the first letter of the string is significant, Default "l" )
  100.   Horizontal Adjustment:
  101.   l : Left - means that IF scrolling is necessary, huntwindows will try to get
  102.          the window adjusted to the left edge of the screen
  103.   r : Same as above with the right edge
  104.   c : Same as above but centering in the screen
  105.   Everything else will switch the adjustment off
  106.  
  107. VADJ=<a>: (only the first letter of the string is significant, Default "t" )
  108.   Horizontal Adjustment:
  109.   t : Top - means that IF scrolling is necessary, huntwindows will try to get
  110.         the window adjusted to the top edge of the screen
  111.   b : Same as above with the buttom edge
  112.   c : Same as above but centering in the screen
  113.   Everything else will switch the adjustment off
  114.  
  115. SCREEN=<pattern>   (Default no pattern)
  116.   All actions will only take place if the DefaultTitle of the actual screen
  117.   matches to the given pattern. If no pattern is given, all screens match.
  118.   If you only want to exclude some screens, simply negate the pattern.
  119.   For example: SCREEN=~(myscreen#?)
  120.   The patternmatching is case insensitive.
  121.  
  122. WINDOW=<pattern>   (Default no pattern)
  123.   Same as screen, but checks the Title of the window that is going to be
  124.   processed.
  125.  
  126. From CLI you will have to start the program in the background via
  127.  
  128.        run <nil: >nil: huntwindows [options]
  129.  
  130. or whatever you like. If you want to quit Huntwindows simply break the
  131. task or quit it with the "Exchange" Commodity Program.
  132.  
  133. From Workbench adjust the tooltypes and simply start by double-clicking.
  134.  
  135.  
  136. THE GRAPHICAL USER INTERFACE:
  137.  
  138. By defining CX_POPUP, by starting Huntwindows a second time or by using
  139. "Show Interface" from the "Exchange" Commodity Program a GUI comes up.
  140.  
  141. All options and tooltypes can be changed here. So you can play around to
  142. find out your configuration. If you already have placed Huntwindows in your
  143. wbstartup-drawer you may simply click "Save" to add all your options as
  144. tooltypes to the icon. When starting from CLI, the "Save"-gadget will be
  145. disabled. All options matching the default-value will not be entered when
  146. saving.
  147. The tooltype "DONOTWAIT", which is necessary when placing Huntwindows into
  148. wbstartup is automaticly added on saving as is CX_PRIORITY if not default.
  149.  
  150. When changing the pattern from the GUI, a check will be done when you press
  151. return. If there is an error in the pattern, a requester comes up and tells
  152. you so. If you do not re-edit the pattern until it is ok, will match nothing.
  153. which is equal to disabling Huntwindows.
  154.  
  155.  
  156. THANX:
  157.  
  158. Michael Suelmann for help with the workbench/gadtools
  159. Markus 'ill' Illenseer for ideas and Aswarm (where I looked up how to do
  160. commodities)
  161. Georg 'Gucky' Hessmann und Matthias 'Tron' Scheler for the idea of the
  162. REMWIN option.
  163. Bernhard 'ZZA' Möllemann for testing and help.
  164.  
  165. TECHNICAL:
  166.  
  167. For reaching this Huntwindows installs a Vertical-Blank interrupt-server,
  168. which tests if the ActiveWindow and the FirstScreen recorded by intuition
  169. differs from the last interrupt and then signals the main-task to move the
  170. display.
  171. Don't mind it taking away too much CPU time - if you have a look at the
  172. source at label 'Interrupt3' you will find that it doesn't do anyhing that
  173. is worth arguing about.
  174.  
  175.  
  176. HISTORY:
  177.  
  178. Version 1.0:
  179. Worked with patching vectors, which didn't solve the problem of getting
  180. every active window completly.
  181.  
  182. Version 1.1:
  183. Now uses VBI for catching active windows.
  184.  
  185. Version 1.2:
  186. Added some new options and removed some bugs.
  187.  
  188. Version 1.3:
  189. WBONLY and WFRONT option added. WFRONT will not make WindowToFront() on
  190. Backdrop and WBENCHWINDOW windows because it causes problems.
  191. Workbenchsupport added.
  192.  
  193. Version 1.4:
  194. Crash when entering wrong arguments removed
  195. Added DEFPUB option
  196.  
  197. Version 2.0:
  198. Enforcer Hits (old debugging stuff) removed.
  199. Added Commodity support.
  200. Added GUI.
  201.  
  202. Version 2.1:
  203. Removed small bugs.
  204. Added REMWIN feature.
  205.  
  206. Version 2.2:
  207. Removed bug in argument-order at CLI-call.
  208. Added MOVEMOUSE feature.
  209.  
  210. Version 2.3:
  211. Added SCREEN and WINDOW option.
  212. Redesigned GUI.
  213.  
  214. Version 2.4:
  215. Now tooltypes can be saved to icon.
  216. Added "Save", "About" and "GUI Popup" Gadgets to GUI.
  217. Removed crash at closedown and some minor bugs.
  218.  
  219. Version 2.5:
  220. Added CX_PRIORITY tooltype.
  221. Removed small bug which caused REMWIN not to work in 2.4.
  222.  
  223. Version 2.6:
  224. Added CX_POPKEY tooltype. GUI can now be opened with a Hotkey.
  225. Added Key-Support for Quit,Save,About and Hide - which are easy to implement
  226.  (I don't think its worth the work and space to do it for all)
  227. Hotkey can be edited and saved from GUI.
  228. Again removed errors in CLI-call.
  229.  
  230. TODO:
  231.  Waiting for any suggestions from you!
  232.  
  233. BUGS:
  234.  I hope none.
  235.  
  236.  
  237. FINAL REMARKS:
  238.  
  239. This tool is very nice to be used together with Windowshuffle by
  240. Stefan Sticht, for hopping through the windows and actually seeing them,
  241. when having a BIG workbench.
  242. Huntwindows could do a lot of more interesting things - if I could think
  243. about anything, so if you have ideas please contact me!
  244.  
  245. For problems and ideas, reach me at:
  246.  
  247. EMAIL: bublath@forwiss.uni-passau.de
  248.  
  249. IRC: Skull
  250.  
  251. SMAIL: Jörg Bublath
  252.        Holzheimerstr. 4/E07
  253.        8390 Passau
  254.        Germany
  255.        Phone: Germany-0851-59947
  256.  
  257.